using DataDynamics.ActiveReports;
using DataDynamics.ActiveReports.Export.Xls;
using SM;
using SS;
using System;
using System.ComponentModel;
using System.Data;
using System.Data.SqlClient;
using System.Drawing;
using System.Windows.Forms;
using TVSBH.func;
namespace TVSGPP.func
{
	public class frmListSuppend : Form
	{
		private IContainer components = null;
		private System.Windows.Forms.Label label1;
		private System.Windows.Forms.Label label2;
		private System.Windows.Forms.Label label3;
		private System.Windows.Forms.Label label4;
		private System.Windows.Forms.Label label5;
		private System.Windows.Forms.Label label7;
		private System.Windows.Forms.Label label8;
		private Grid dgvBill;
		private Button btnClose;
		private Button btnPrint;
		private System.Windows.Forms.Label label9;
		private System.Windows.Forms.Label label10;
		private System.Windows.Forms.Label label6;
		private Button btnReFresh;
		private Button btnAdd;
		private DataGridViewTextBoxColumn CreateDate;
		private DataGridViewTextBoxColumn DocumentRefer;
		private DataGridViewTextBoxColumn productName;
		private DataGridViewTextBoxColumn Packet;
		private DataGridViewTextBoxColumn ProductExpiryDate;
		private DataGridViewTextBoxColumn NationalID;
		private DataGridViewTextBoxColumn LocationSampling;
		private DataGridViewTextBoxColumn BalacerNumber;
		private DataGridViewTextBoxColumn ProcessType;
		private DataGridViewTextBoxColumn Pid;
		private Button btnDel;
		private Button btnExportToExcel;
		private Func objFunc = new Func();
		private DataTable objTable = new DataTable();
		private string pid = "";
		private string packet = "";
		public string userName = "";
		protected override void Dispose(bool disposing)
		{
			if (disposing && this.components != null)
			{
				this.components.Dispose();
			}
			base.Dispose(disposing);
		}
		private void InitializeComponent()
		{
			DataGridViewCellStyle dataGridViewCellStyle = new DataGridViewCellStyle();
			DataGridViewCellStyle dataGridViewCellStyle2 = new DataGridViewCellStyle();
			DataGridViewCellStyle dataGridViewCellStyle3 = new DataGridViewCellStyle();
			DataGridViewCellStyle dataGridViewCellStyle4 = new DataGridViewCellStyle();
			this.label1 = new System.Windows.Forms.Label();
			this.label2 = new System.Windows.Forms.Label();
			this.label3 = new System.Windows.Forms.Label();
			this.label4 = new System.Windows.Forms.Label();
			this.label5 = new System.Windows.Forms.Label();
			this.label7 = new System.Windows.Forms.Label();
			this.label8 = new System.Windows.Forms.Label();
			this.dgvBill = new Grid();
			this.CreateDate = new DataGridViewTextBoxColumn();
			this.DocumentRefer = new DataGridViewTextBoxColumn();
			this.productName = new DataGridViewTextBoxColumn();
			this.Packet = new DataGridViewTextBoxColumn();
			this.ProductExpiryDate = new DataGridViewTextBoxColumn();
			this.NationalID = new DataGridViewTextBoxColumn();
			this.LocationSampling = new DataGridViewTextBoxColumn();
			this.BalacerNumber = new DataGridViewTextBoxColumn();
			this.ProcessType = new DataGridViewTextBoxColumn();
			this.Pid = new DataGridViewTextBoxColumn();
			this.btnClose = new Button();
			this.btnPrint = new Button();
			this.label9 = new System.Windows.Forms.Label();
			this.label10 = new System.Windows.Forms.Label();
			this.label6 = new System.Windows.Forms.Label();
			this.btnReFresh = new Button();
			this.btnAdd = new Button();
			this.btnDel = new Button();
			this.btnExportToExcel = new Button();
			((ISupportInitialize)this.dgvBill).BeginInit();
			base.SuspendLayout();
			this.label1.Anchor = (AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right);
			this.label1.Font = new Font("Arial", 12f, FontStyle.Bold, GraphicsUnit.Point, 0);
			this.label1.Location = new Point(8, 9);
			this.label1.Name = "label1";
			this.label1.Size = new Size(882, 30);
			this.label1.TabIndex = 0;
			this.label1.Text = "SỔ THEO DÕI THUỐC BỊ ĐÌNH CHỈ LƯU HÀNH";
			this.label1.TextAlign = ContentAlignment.MiddleCenter;
			this.label2.BorderStyle = BorderStyle.FixedSingle;
			this.label2.Font = new Font("Arial", 9.75f, FontStyle.Bold, GraphicsUnit.Point, 0);
			this.label2.Location = new Point(6, 46);
			this.label2.Name = "label2";
			this.label2.Size = new Size(37, 45);
			this.label2.TabIndex = 100;
			this.label2.Text = "STT";
			this.label2.TextAlign = ContentAlignment.MiddleCenter;
			this.label3.BorderStyle = BorderStyle.FixedSingle;
			this.label3.Font = new Font("Arial", 9.75f, FontStyle.Bold, GraphicsUnit.Point, 0);
			this.label3.Location = new Point(42, 46);
			this.label3.Name = "label3";
			this.label3.Size = new Size(154, 45);
			this.label3.TabIndex = 101;
			this.label3.Text = "Số công văn đình chỉ, ngày tháng năm ban hành";
			this.label3.TextAlign = ContentAlignment.MiddleCenter;
			this.label4.BorderStyle = BorderStyle.FixedSingle;
			this.label4.Font = new Font("Arial", 9.75f, FontStyle.Bold, GraphicsUnit.Point, 0);
			this.label4.Location = new Point(195, 46);
			this.label4.Name = "label4";
			this.label4.Size = new Size(148, 45);
			this.label4.TabIndex = 102;
			this.label4.Text = "Tên thuốc";
			this.label4.TextAlign = ContentAlignment.MiddleCenter;
			this.label5.BorderStyle = BorderStyle.FixedSingle;
			this.label5.Font = new Font("Arial", 9.75f, FontStyle.Bold, GraphicsUnit.Point, 0);
			this.label5.Location = new Point(342, 46);
			this.label5.Name = "label5";
			this.label5.Size = new Size(85, 45);
			this.label5.TabIndex = 103;
			this.label5.Text = "Số lô";
			this.label5.TextAlign = ContentAlignment.MiddleCenter;
			this.label7.BorderStyle = BorderStyle.FixedSingle;
			this.label7.Font = new Font("Arial", 9.75f, FontStyle.Bold, GraphicsUnit.Point, 0);
			this.label7.Location = new Point(597, 46);
			this.label7.Name = "label7";
			this.label7.Size = new Size(92, 45);
			this.label7.TabIndex = 106;
			this.label7.Text = "Nơi lấy mẫu";
			this.label7.TextAlign = ContentAlignment.MiddleCenter;
			this.label8.BorderStyle = BorderStyle.FixedSingle;
			this.label8.Font = new Font("Arial", 9.75f, FontStyle.Bold, GraphicsUnit.Point, 0);
			this.label8.Location = new Point(688, 46);
			this.label8.Name = "label8";
			this.label8.Size = new Size(105, 45);
			this.label8.TabIndex = 107;
			this.label8.Text = "SL hiện có tại nhà thuốc";
			this.label8.TextAlign = ContentAlignment.MiddleCenter;
			this.dgvBill.AllowUserToAddRows = false;
			this.dgvBill.AllowUserToDeleteRows = false;
			this.dgvBill.AllowUserToResizeColumns = false;
			this.dgvBill.AllowUserToResizeRows = false;
			dataGridViewCellStyle.BackColor = Color.FromArgb(192, 255, 255);
			dataGridViewCellStyle.Font = new Font("Arial", 9.75f, FontStyle.Regular, GraphicsUnit.Point, 0);
			this.dgvBill.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle;
			this.dgvBill.Anchor = (AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right);
			this.dgvBill.BackgroundColor = Color.White;
			this.dgvBill.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
			this.dgvBill.ColumnHeadersVisible = false;
			this.dgvBill.Columns.AddRange(new DataGridViewColumn[]
			{
				this.CreateDate,
				this.DocumentRefer,
				this.productName,
				this.Packet,
				this.ProductExpiryDate,
				this.NationalID,
				this.LocationSampling,
				this.BalacerNumber,
				this.ProcessType,
				this.Pid
			});
			this.dgvBill.Location = new Point(6, 90);
			this.dgvBill.Name = "dgvBill";
			this.dgvBill.RowHeadersVisible = false;
			dataGridViewCellStyle2.Font = new Font("Arial", 9.75f, FontStyle.Regular, GraphicsUnit.Point, 0);
			this.dgvBill.RowsDefaultCellStyle = dataGridViewCellStyle2;
			this.dgvBill.RowTemplate.DefaultCellStyle.Font = new Font("Arial", 9.75f, FontStyle.Regular, GraphicsUnit.Point, 0);
			this.dgvBill.Size = new Size(888, 470);
			this.dgvBill.TabIndex = 1;
			this.dgvBill.CellEnter += new DataGridViewCellEventHandler(this.dgvBill_CellEnter);
			this.CreateDate.AutoSizeMode = DataGridViewAutoSizeColumnMode.None;
			this.CreateDate.DataPropertyName = "CreateDate";
			dataGridViewCellStyle3.Format = "D";
			dataGridViewCellStyle3.NullValue = null;
			this.CreateDate.DefaultCellStyle = dataGridViewCellStyle3;
			this.CreateDate.HeaderText = "STT";
			this.CreateDate.MinimumWidth = 35;
			this.CreateDate.Name = "CreateDate";
			this.CreateDate.Width = 35;
			this.DocumentRefer.AutoSizeMode = DataGridViewAutoSizeColumnMode.None;
			this.DocumentRefer.DataPropertyName = "DocumentRefer";
			this.DocumentRefer.HeaderText = "DocumentRefer";
			this.DocumentRefer.MinimumWidth = 153;
			this.DocumentRefer.Name = "DocumentRefer";
			this.DocumentRefer.Width = 153;
			this.productName.AutoSizeMode = DataGridViewAutoSizeColumnMode.None;
			this.productName.DataPropertyName = "productName";
			this.productName.HeaderText = "productName";
			this.productName.MinimumWidth = 147;
			this.productName.Name = "productName";
			this.productName.Width = 147;
			this.Packet.AutoSizeMode = DataGridViewAutoSizeColumnMode.None;
			this.Packet.DataPropertyName = "Packet";
			this.Packet.HeaderText = "Packet";
			this.Packet.MinimumWidth = 84;
			this.Packet.Name = "Packet";
			this.Packet.Width = 84;
			this.ProductExpiryDate.AutoSizeMode = DataGridViewAutoSizeColumnMode.None;
			this.ProductExpiryDate.DataPropertyName = "ProductExpiryDate";
			dataGridViewCellStyle4.Format = "D";
			dataGridViewCellStyle4.NullValue = null;
			this.ProductExpiryDate.DefaultCellStyle = dataGridViewCellStyle4;
			this.ProductExpiryDate.HeaderText = "ProductExpiryDate";
			this.ProductExpiryDate.MinimumWidth = 75;
			this.ProductExpiryDate.Name = "ProductExpiryDate";
			this.ProductExpiryDate.Width = 75;
			this.NationalID.AutoSizeMode = DataGridViewAutoSizeColumnMode.None;
			this.NationalID.DataPropertyName = "Name";
			this.NationalID.HeaderText = "NationalID";
			this.NationalID.MinimumWidth = 96;
			this.NationalID.Name = "NationalID";
			this.NationalID.Width = 96;
			this.LocationSampling.AutoSizeMode = DataGridViewAutoSizeColumnMode.None;
			this.LocationSampling.DataPropertyName = "LocationSampling";
			this.LocationSampling.HeaderText = "Location";
			this.LocationSampling.MinimumWidth = 91;
			this.LocationSampling.Name = "LocationSampling";
			this.LocationSampling.Width = 91;
			this.BalacerNumber.AutoSizeMode = DataGridViewAutoSizeColumnMode.None;
			this.BalacerNumber.DataPropertyName = "BalacerNumber";
			this.BalacerNumber.HeaderText = "BalacerNumber";
			this.BalacerNumber.MinimumWidth = 104;
			this.BalacerNumber.Name = "BalacerNumber";
			this.BalacerNumber.Width = 104;
			this.ProcessType.AutoSizeMode = DataGridViewAutoSizeColumnMode.None;
			this.ProcessType.DataPropertyName = "ProcessType";
			this.ProcessType.HeaderText = "ProcessType";
			this.ProcessType.MinimumWidth = 102;
			this.ProcessType.Name = "ProcessType";
			this.ProcessType.Width = 102;
			this.Pid.DataPropertyName = "Pid";
			this.Pid.HeaderText = "Pid";
			this.Pid.Name = "Pid";
			this.Pid.Visible = false;
			this.btnClose.Anchor = (AnchorStyles.Bottom | AnchorStyles.Right);
			this.btnClose.FlatAppearance.BorderColor = Color.FromArgb(255, 128, 255);
			this.btnClose.FlatStyle = FlatStyle.Flat;
			this.btnClose.Font = new Font("Arial", 9f, FontStyle.Bold, GraphicsUnit.Point, 163);
			this.btnClose.Location = new Point(794, 567);
			this.btnClose.Name = "btnClose";
			this.btnClose.Size = new Size(100, 26);
			this.btnClose.TabIndex = 7;
			this.btnClose.Text = "Thoát  [ ESC ]";
			this.btnClose.UseVisualStyleBackColor = true;
			this.btnClose.Click += new EventHandler(this.btnClose_Click);
			this.btnPrint.Anchor = (AnchorStyles.Bottom | AnchorStyles.Left);
			this.btnPrint.FlatAppearance.BorderColor = Color.FromArgb(255, 128, 255);
			this.btnPrint.FlatStyle = FlatStyle.Flat;
			this.btnPrint.Font = new Font("Arial", 9f, FontStyle.Bold, GraphicsUnit.Point, 163);
			this.btnPrint.Location = new Point(300, 567);
			this.btnPrint.Name = "btnPrint";
			this.btnPrint.Size = new Size(104, 26);
			this.btnPrint.TabIndex = 5;
			this.btnPrint.Text = "In báo cáo [ F7 ]";
			this.btnPrint.UseVisualStyleBackColor = true;
			this.btnPrint.Click += new EventHandler(this.btnPrint_Click);
			this.label9.BorderStyle = BorderStyle.FixedSingle;
			this.label9.Font = new Font("Arial", 9.75f, FontStyle.Bold, GraphicsUnit.Point, 0);
			this.label9.Location = new Point(426, 46);
			this.label9.Name = "label9";
			this.label9.Size = new Size(76, 45);
			this.label9.TabIndex = 104;
			this.label9.Text = "Hạn dùng";
			this.label9.TextAlign = ContentAlignment.MiddleCenter;
			this.label10.BorderStyle = BorderStyle.FixedSingle;
			this.label10.Font = new Font("Arial", 9.75f, FontStyle.Bold, GraphicsUnit.Point, 0);
			this.label10.Location = new Point(501, 46);
			this.label10.Name = "label10";
			this.label10.Size = new Size(97, 45);
			this.label10.TabIndex = 105;
			this.label10.Text = "Nơi sản xuất";
			this.label10.TextAlign = ContentAlignment.MiddleCenter;
			this.label6.BorderStyle = BorderStyle.FixedSingle;
			this.label6.Font = new Font("Arial", 9.75f, FontStyle.Bold, GraphicsUnit.Point, 0);
			this.label6.Location = new Point(792, 46);
			this.label6.Name = "label6";
			this.label6.Size = new Size(102, 45);
			this.label6.TabIndex = 108;
			this.label6.Text = "Xử lý của nhà thuốc";
			this.label6.TextAlign = ContentAlignment.MiddleCenter;
			this.btnReFresh.Anchor = (AnchorStyles.Bottom | AnchorStyles.Left);
			this.btnReFresh.FlatAppearance.BorderColor = Color.FromArgb(255, 128, 255);
			this.btnReFresh.FlatStyle = FlatStyle.Flat;
			this.btnReFresh.Font = new Font("Arial", 9f, FontStyle.Bold, GraphicsUnit.Point, 163);
			this.btnReFresh.Location = new Point(205, 567);
			this.btnReFresh.Name = "btnReFresh";
			this.btnReFresh.Size = new Size(92, 26);
			this.btnReFresh.TabIndex = 4;
			this.btnReFresh.Text = "Cập nhật DS";
			this.btnReFresh.UseVisualStyleBackColor = true;
			this.btnReFresh.Click += new EventHandler(this.btnReFresh_Click);
			this.btnAdd.Anchor = (AnchorStyles.Bottom | AnchorStyles.Left);
			this.btnAdd.FlatAppearance.BorderColor = Color.FromArgb(255, 128, 255);
			this.btnAdd.FlatStyle = FlatStyle.Flat;
			this.btnAdd.Font = new Font("Arial", 9f, FontStyle.Bold, GraphicsUnit.Point, 163);
			this.btnAdd.Location = new Point(6, 567);
			this.btnAdd.Name = "btnAdd";
			this.btnAdd.Size = new Size(91, 26);
			this.btnAdd.TabIndex = 2;
			this.btnAdd.Text = "Thêm mới";
			this.btnAdd.UseVisualStyleBackColor = true;
			this.btnAdd.Click += new EventHandler(this.btnAdd_Click);
			this.btnDel.Anchor = (AnchorStyles.Bottom | AnchorStyles.Left);
			this.btnDel.FlatAppearance.BorderColor = Color.FromArgb(255, 128, 255);
			this.btnDel.FlatStyle = FlatStyle.Flat;
			this.btnDel.Font = new Font("Arial", 9f, FontStyle.Bold, GraphicsUnit.Point, 163);
			this.btnDel.Location = new Point(100, 567);
			this.btnDel.Name = "btnDel";
			this.btnDel.Size = new Size(102, 26);
			this.btnDel.TabIndex = 3;
			this.btnDel.Text = "Xoá cảnh báo";
			this.btnDel.UseVisualStyleBackColor = true;
			this.btnDel.Click += new EventHandler(this.btnDel_Click);
			this.btnExportToExcel.Anchor = (AnchorStyles.Bottom | AnchorStyles.Left);
			this.btnExportToExcel.FlatAppearance.BorderColor = Color.FromArgb(255, 128, 255);
			this.btnExportToExcel.FlatStyle = FlatStyle.Flat;
			this.btnExportToExcel.Font = new Font("Arial", 9f, FontStyle.Bold, GraphicsUnit.Point, 163);
			this.btnExportToExcel.Location = new Point(407, 567);
			this.btnExportToExcel.Name = "btnExportToExcel";
			this.btnExportToExcel.Size = new Size(102, 26);
			this.btnExportToExcel.TabIndex = 109;
			this.btnExportToExcel.Text = "Xuất file Excel";
			this.btnExportToExcel.UseVisualStyleBackColor = true;
			this.btnExportToExcel.Click += new EventHandler(this.btnExportToExcel_Click);
			base.AutoScaleDimensions = new SizeF(7f, 15f);
			//base.AutoScaleMode = AutoScaleMode.Font;
			this.BackColor = Color.White;
			base.ClientSize = new Size(900, 600);
			base.Controls.Add(this.btnExportToExcel);
			base.Controls.Add(this.btnDel);
			base.Controls.Add(this.btnReFresh);
			base.Controls.Add(this.btnAdd);
			base.Controls.Add(this.btnPrint);
			base.Controls.Add(this.btnClose);
			base.Controls.Add(this.dgvBill);
			base.Controls.Add(this.label1);
			base.Controls.Add(this.label6);
			base.Controls.Add(this.label10);
			base.Controls.Add(this.label9);
			base.Controls.Add(this.label8);
			base.Controls.Add(this.label7);
			base.Controls.Add(this.label5);
			base.Controls.Add(this.label4);
			base.Controls.Add(this.label3);
			base.Controls.Add(this.label2);
			this.Font = new Font("Arial", 9f, FontStyle.Regular, GraphicsUnit.Point, 0);
			//base.Icon = (System.Drawing.Icon)componentResourceManager.GetObject("$this.Icon");
			base.Name = "frmListSuppend";
			base.StartPosition = FormStartPosition.CenterScreen;
			this.Text = "SỔ THEO DÕI BỆNH NHÂN";
			base.Load += new EventHandler(this.frmTracePatients_Load);
			base.KeyDown += new KeyEventHandler(this.frmListSuppend_KeyDown);
			((ISupportInitialize)this.dgvBill).EndInit();
			base.ResumeLayout(false);
		}
		public frmListSuppend()
		{
			this.InitializeComponent();
		}
		private void frmTracePatients_Load(object sender, EventArgs e)
		{
			this.getBill();
		}
		private void getBill()
		{
			this.objTable = null;
			this.dgvBill.AutoGenerateColumns = false;
			SqlConnection sqlConnection = new SqlConnection(this.objFunc.strConnectionString);
			string cmdText = "SELECT * FROM [TabListSuppend],[TabNational] WHERE [TabListSuppend].[NationalID] = [TabNational].[ID]";
			SqlCommand selectCommand = new SqlCommand(cmdText, sqlConnection);
			SqlDataAdapter sqlDataAdapter = new SqlDataAdapter(selectCommand);
			DataSet dataSet = new DataSet();
			sqlConnection.Open();
			sqlDataAdapter.Fill(dataSet);
			this.objTable = dataSet.Tables[0];
			this.dgvBill.DataSource = this.objTable;
			sqlConnection.Close();
			sqlConnection.Dispose();
			sqlDataAdapter.Dispose();
			dataSet.Dispose();
		}
		private void btnClose_Click(object sender, EventArgs e)
		{
			base.Close();
		}
		private void btnAdd_Click(object sender, EventArgs e)
		{
			new frmAddSuppend
			{
				userName = this.userName
			}.ShowDialog();
			this.getBill();
		}
		private void btnReFresh_Click(object sender, EventArgs e)
		{
			this.getBill();
		}
		private void dgvBill_CellEnter(object sender, DataGridViewCellEventArgs e)
		{
			this.pid = this.dgvBill.Rows[e.RowIndex].Cells["Pid"].Value.ToString();
			this.packet = this.dgvBill.Rows[e.RowIndex].Cells["Packet"].Value.ToString();
		}
		private void btnDel_Click(object sender, EventArgs e)
		{
			if (this.pid != "" && this.packet != "")
			{
				if (MessageBox.Show("Bạn có muốn đưa sản phẩm hiện tại khỏi danh sách \r\nthuốc bị đình chỉ lưu hành không?", "Thông báo", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
				{
					SqlConnection sqlConnection = new SqlConnection(this.objFunc.strConnectionString);
					string cmdText = string.Concat(new string[]
					{
						"DELETE FROM [TabListSuppend] WHERE [Pid] = ",
						this.pid,
						" AND [Packet] = '",
						this.packet,
						"'"
					});
					sqlConnection.Open();
					SqlCommand sqlCommand = new SqlCommand(cmdText, sqlConnection);
					sqlCommand.ExecuteNonQuery();
					sqlConnection.Close();
					sqlConnection.Dispose();
					this.getBill();
				}
			}
		}
		private void frmListSuppend_KeyDown(object sender, KeyEventArgs e)
		{
			if (e.KeyCode == Keys.Escape)
			{
				base.Close();
			}
			else
			{
				if (e.KeyCode == Keys.F7)
				{
					this.btnPrint.PerformClick();
				}
			}
		}
		private void btnPrint_Click(object sender, EventArgs e)
		{
			frmListSuppendView frmListSuppendView = new frmListSuppendView();
			frmListSuppendPrint.objTable = this.objTable;
			frmListSuppendView.ShowDialog();
		}
		private void btnExportToExcel_Click(object sender, EventArgs e)
		{
			try
			{
				frmListSuppendPrint.objTable = new DataTable();
				frmListSuppendPrint.objTable = this.objTable;
				ActiveReport3 activeReport = new frmListSuppendPrint();
				activeReport.Run();
				XlsExport xlsExport = new XlsExport();
				SaveFileDialog saveFileDialog = new SaveFileDialog();
				saveFileDialog.ShowDialog();
				string text = saveFileDialog.FileName;
				if (text != "")
				{
					if (!text.ToUpper().Contains(".XLS"))
					{
						text += ".xls";
					}
					xlsExport.Export(activeReport.Document, text);
					MessageBox.Show("Hệ thống đã hoàn thành việc xuất dữ liệu ra file Excel", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
				}
				else
				{
					MessageBox.Show("Bạn chưa chọn đường dẫn và tên file cần xuất!", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
				}
			}
			catch
			{
			}
		}
	}
}
